@echo off
echo Testing login API after fix...

echo Testing with admin user...
powershell -Command "try { $response = Invoke-RestMethod -Uri 'http://localhost:8080/api/user/login' -Method POST -ContentType 'application/json' -Body '{\"username\":\"admin\",\"password\":\"123456\"}'; Write-Host 'Response:'; $response | ConvertTo-Json -Depth 3 } catch { Write-Host 'Error:' $_.Exception.Message }"

echo.
echo Test completed!
pause
